import {Ordinal} from "./Ordinal";

export function HH(rate,value){
    if (!rate instanceof Ordinal){
        return rate === 0 ? value : HH(rate - 1, value + 1);
    }
    else {
        return HH(rate.getAt(value),value)
    }
}
